﻿using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Validation;

namespace TenantManagement;

public abstract class TenantDomainCreateOrUpdateParameterBase
{
    [Required]
    [DynamicStringLength(typeof(TenantDomainConsts), nameof(TenantDomainConsts.MaxNameLength))]
    [Display(Name = "TenantDomainName")]
    public string Name { get; set; }

    [Required]
    [DynamicStringLength(typeof(TenantDomainConsts), nameof(TenantDomainConsts.MaxValueLength))]
    [Display(Name = "TenantDomainValue")]
    public string DisplayName { get; set; }
}
